<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$siteTitle}</title>
<link href="__ADMIN__/css/style.css" rel="stylesheet" type="text/css" />
<link href="__ADMIN__/css/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__ADMIN__/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="__ADMIN__/wx/js/ecmall.js" charset="utf-8"></script>
<script type="text/javascript" src="__ADMIN__/wx/js/admin.js" charset="utf-8"></script>
<script type="text/javascript" src="__ADMIN__/js/plugins/jquery.autocomplete.js" charset="utf-8"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$(".click").click(function() {
			$(".tip").fadeIn(200);
		});

		$(".tiptop a").click(function() {
			$(".tip").fadeOut(200);
		});

		$(".sure").click(function() {
			$(".tip").fadeOut(100);
		});

		$(".cancel").click(function() {
			$(".tip").fadeOut(100);
		});
	});

</script>
</head>
<body>
	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="#">首页</a></li>
			<li><a href="#">美容院资质设置</a></li>
		</ul>
	</div>
	<div class="rightinfo">
		
		<div class="formbody">
		<div id="tab2" class="tabson">
			<form action="{:U('Admin/BeautyParlor/setZizhi')}" id="appForm" method="post">
				<input type="hidden" name="bp_id" value="{$id}"/>
			    <table style="line-height: 40px;">
			        <tr id="dealer_color">
			            <th>信用等级：</th>
			            <td >
		            		<input type="text" name="credit_rating" class="dfinput"  size="50" value="{$setting.credit_rating}" />
			            </td>
			        </tr>
			        <tr id="dealer_color">
			            <th>保证金：</th>
			            <td >
		            		<input type="text" name="bond" class="dfinput"  size="50" value="{$setting.bond}" />
			            </td>
			        </tr>
			        <tr id="dealer_color">
			            <th>星级认证：</th>
			            <td >
		            		<input type="text" name="star_certification" class="dfinput"  size="50" value="{$setting.star_certification}" />
			            </td>
			        </tr>
			        <tr id="dealer_color">
			            <th>店面环境：</th>
			            <td >
		            		<input type="text" name="store_environment" class="dfinput"  size="50" value="{$setting.store_environment}" />
			            </td>
			        </tr>
			        <tr id="dealer_color">
			            <th>工作时间：</th>
			            <td >
		            		<input type="text" name="working_hours" class="dfinput"  size="50" value="{$setting.working_hours}" />
			            </td>
			        </tr>
			        <tr id="dealer_color">
			            <th>店铺面积：</th>
			            <td >
		            		<input type="text" name="shop_area" class="dfinput"  size="50" value="{$setting.shop_area}" />
			            </td>
			        </tr>
			        <tr id="dealer_color">
			            <th>主营业务：</th>
			            <td >
		            		<input type="text" name="main_business" class="dfinput"  size="50" value="{$setting.main_business}" />
			            </td>
			        </tr>
			        <tr id="dealer_color">
			            <th>店主介绍：</th>
			            <td >
		            		<input type="text" name="shop_owner" class="dfinput"  size="50" value="{$setting.shop_owner}" />
			            </td>
			        </tr>
			        
			        <tr>
			            <th></th>
			            <td class="ptb20">
			                <input type="submit" class="scbtn" value="提交">
			            </td>
			        </tr>
			    </table>
		    </form>
		</div>
    </div>
	</div>
	<script type="text/javascript">
		$('.tablelist tbody tr:odd').addClass('odd');
		$(function () {
			$("#cashDay").val('{$setting.count_cash_day}');
			$('#sourceAutocomplete').autocomplete({
				serviceUrl: '{:U("/Admin/User/searchUser")}',
				minChars: 2,
				showNoSuggestionNotice: true,
				noSuggestionNotice: 'Sorry, no matching results',
				triggerSelectOnValidInput: false,
				
				onSelect: function (suggestion) {
					console.log(suggestion);
					var selectHtml = '<div class="selectUser" data-user-id="'+suggestion.id+'">'
						+'<input type="hidden" name="user[]" value="'+suggestion.id+'">'
						+'<img src="'+suggestion.headerimg+'" style="width:50xp;height:50px;s">'
						+''+suggestion.username
					'</div>';
					$('#selectUserWrap').append(selectHtml);
				}
			});
		});
	</script>
</body>
</html>